<?xml version="1.0" encoding="UTF-8"?>
<ImageCRS xmlns="http://www.opengis.net/gml" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/gml fragmentImageCRSs.xsd" gml:id="ImageTBDCRSpixelCenter">
	<!-- Primary editor: Arliss Whiteside. Last updated 2005-01-28-->
	<srsName>Image TBD CRS pixel centers</srsName>
	<!-- Specific image or group shall be identified by "TBD" in this srsName. -->
	<srsID>
		<name codeSpace="urn:ogc:def:crs:OGC:1.0:ImageCRSpixelCenter:">ImageTBDCRSpixelCenter</name>
		<!-- Specifies the URN that can be used to reference this image CRS. This URN includes the image name as a parameter. The specific image or group shall be identified by the "TBD" in the "name" value. -->
	</srsID>
	<remarks>Parameterized definition of 2D image coordinate reference systems with the origin at the center of the first pixel in the image file. This CRS definition can be used for any size image, since no image size is specified. 

This CRS definition is designed to be used for ungeorectified images, and is not expected to be used for a georectified image. This definition can be used for a georeferenced or ungeoreferenced image, where a georeferenced image CRS is associated with the coordinate Transformation(s) that georeference it. </remarks>
	<usesCartesianCS>
		<CartesianCS gml:id="Grid2dSquareCS">
			<csName>2D square-cell grid based coordinate system</csName>
			<csID>
				<name codeSpace="urn:ogc:def:cs:OGC:1.0:">Grid2dSquareCS</name>
			</csID>
			<remarks>A 2D grid-based coordinate system for use by an image or other continuous grid coverage. It can be used for a grid of any size, since no grid size is defined. This coordinate system specifies that each row coordinate value shall be listed before the column coordinate value. The grid cells are assumed to be square, with the same grid spacing or pixel spacing in each direction. 

In a grid coverage file, the "row" axis shall be the first axis by which grid points are sequenced, and the "column" axis shall be the second axis, as could be specified by the "scanDirection : Sequence(CharacterString)" attribute of the CV_SequenceRule class in Clause 8 of ISO 19123. With linear sequencing, the grid points in the first row shall be listed first, followed by other rows, with the grid points in each row listed in column number order. This relationship between the "row" and "column" names and the first grid points shall apply whether this Grid2dSquareCS is associated with a grid file before or after that file is recorded.

The "row" and "column" axis names are used here although the "scanDirection : Sequence(CharacterString)" attribute may provide other axis names. Use of other axis names would require defining different CartesianCSs for other names, or adding other names as additional axisID values. The following XML includes the axis names "line" and "sample" as additional axisID values.

If not otherwise identified in an image file, the "row" axis shall be the first axis whose number of pixels is identified, and the "column" axis shall be the second axis, as could be specified by the "extent[0..1] : CV_GridEnvelope" attribute of the CV_Grid class in Clause 8 of ISO 19123. In either case, the first point in the grid coverage file is assumed to be numbered (1, 1), meaning row 1, column 1. 

The first row in a grid is sometimes called the "top" row, the first column is sometimes called the "left" column, and the first grid point is then called the "upperLeft" point. If desired, those names can be used with this Grid2dSquareCS. However other names can also be used, since this Grid2dSquareCS has been defined so that it does not depend on such left/right, top/bottom, and up/down names. </remarks>
			<usesAxis>
				<CoordinateSystemAxis gml:id="Row" gml:uom="urn:ogc:def:uom:OGC:1.0:GridSpacing">
					<name>Grid row axis</name>
					<axisID>
						<name codeSpace="urn:ogc:def:axis:OGC:1.0:">Row</name>
					</axisID>
					<remarks>For this grid axis, row coordinate values match grid row numbers, but allow fractional coordinate values between grid points. The first row in a grid is sometimes called the "top" row, so the direction of this axis is "down", but these terms are not required. </remarks>
					<axisAbbrev>R</axisAbbrev>
					<axisDirection>urn:ogc:def:axisDirection:OGC:1.0:rowPositive</axisDirection>
				</CoordinateSystemAxis>
			</usesAxis>
			<usesAxis>
				<CoordinateSystemAxis gml:id="Column" gml:uom="urn:ogc:def:uom:OGC:1.0:GridSpacing">
					<name>Grid column axis</name>
					<axisID>
						<name codeSpace="urn:ogc:def:axis:OGC:1.0:">Column</name>
					</axisID>
					<remarks>For this grid axis, column coordinate values match grid column numbers, but allow fractional coordinate values between grid points. The first column is sometimes called the "left" column, so the direction of this axis is "right", but these terms are not required. </remarks>
					<axisAbbrev>C</axisAbbrev>
					<axisDirection>urn:ogc:def:axisDirection:OGC:1.0:columnPositive</axisDirection>
				</CoordinateSystemAxis>
			</usesAxis>
		</CartesianCS>
	</usesCartesianCS>
	<usesImageDatum>
		<ImageDatum gml:id="ImageDatumPixelCenter">
			<datumName>Origin at center of first pixel</datumName>
			<datumID>
				<name codeSpace="urn:ogc:def:datum:OGC:1.0:">ImageDatumPixelCenter</name>
			</datumID>
			<remarks>A 2D image datum with the origin at the center of the first pixel in the image file. In an image file, the pixels in the first row are assumed to be listed first, followed by other rows, with pixels in each row listed (and collected) in column number order. </remarks>
			<anchorPoint>center of first pixel</anchorPoint>
			<pixelInCell codeSpace="urn:ogc:def:pixelInCell:OGC:1.0:">cellCenter</pixelInCell>
		</ImageDatum>
	</usesImageDatum>
</ImageCRS>
